import App from './App'
import uView from 'uni_modules/uview-ui';
Vue.use(uView);
import Api from '@/config/api.js' // 全局挂载引入，配置相关在该index.js文件里修改
const api = new Api()
Vue.prototype.api = api
import AES from '@/js_sdk/ar-aes/ar-aes.js'
Vue.prototype.AES = AES.AES
// #ifdef H5
//导入 //（一定要用条件编译，否则在打包APP或在手机基座运行时会报 ‘jweixin’ of undefined,造成手机白屏）
import wxApi from '@/common/wxApi.js'
//挂载
Vue.prototype.$wxPay = wxApi.wexinPay
// #endif
Vue.prototype.FileUrl = 'https://m.pdfjm.com/#/pages/lock/pdf?serialNo='
Vue.prototype.getNoData = function (img) {
	return '../../static/notData.png'
};
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif